/*
 * @Author: jiaminghui
 * @Date: 2022-10-19 11:41:39
 * @LastEditTime: 2022-10-19 15:06:00
 * @LastEditors: jiaminghui
 * @FilePath: \mh-music-web-react\src\components\app-header\style.js
 * @Description:
 */
import styled from "styled-components";
export const HeaderWrapper = styled.div`
  background-color: #242424;
  color: #fff;
  font-size: 14px;
  height: 75px;
  .content {
    height: 70px;
    display: flex;
    justify-content: space-between;
  }
  .divider {
    height: 5px;
    background-color: #c20c0c;
  }
`;

export const HeaderLeft = styled.div`
  display: flex;
  .logo {
    display: block;
    width: 177px;
    height: 69px;
    background-position: 0 0;

    text-indent: -9999px;
  }
  .select-list {
    display: flex;
    a {
      color: #ccc;
      display: block;
      padding: 0 19px;
    }
  }
  .select-item {
    line-height: 70px;
    position: relative;

    &:hover,
    &:hover a,
    a.active {
      color: #fff;
      text-decoration: none;
      background-color: #000;
    }

    .active i {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: -1px;
      width: 12px;
      height: 7px;
      background-position: -226px 0;
    }
    &:last-of-type::after {
      content: "";
      position: absolute;
      width: 28px;
      height: 19px;
      background-image: url(${require("../../assets/img/sprite_01.png")});
      background-position: -190px 0;
      top: 20px;
      right: -15px;
    }
  }
`;

export const HeaderRight = styled.div`
  display: flex;
  align-items: center;
  color: #ccc;
  font-size: 12px;
  .search {
    border-radius: 16px;
    width: 158px;
    height: 32px;

    input {
      &::placeholder {
        font-size: 12px;
      }
    }
  }

  .center {
    width: 90px;
    height: 32px;
    text-align: center;
    border: 1px solid #666;
    border-radius: 16px;
    margin: 0 16px;
    color: #ccc;
    background-color: transparent;

    &:hover {
        border: 1px solid white;
        cursor: pointer;
        color: #fff;
    }
  }
  .login:hover {
    cursor: pointer;
    text-decoration: underline;
    color: #787878;
  }
`;
